package Entity;
 

 
import java.util.Date;
 

 
/**
 
 * This is an entity for full subscriber.
 
 *  it has only penalty.
 
 * @author Or Marx
 
 *
 
 */
 
public class FullSubscription extends Subscription{
 
        private int penalty; //did he park over the 14 days? (0/1)
 
        /**
 
         * is the constructor which only set the penalty to 0 and call the super constructor.
 
         */
 
        public FullSubscription()
 
        {
 
                super();
 
                penalty=0;
 
        }
 
        
 
        public FullSubscription(String num,String id,String car,Date s, Date e)
 
        {
 
                super(num,id,car,s,e);
 
                penalty=0;
 
        }
 
        // set and get penalty.
 
        public int getPenalty() {
 
                return penalty;
 
        }
 
        public void setPenalty(int penalty) {
 
                this.penalty = penalty;
 
        }
 

 
} 
